package com.sgcc.isc.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sgcc.common.core.annotation.Excel;
import com.sgcc.common.core.web.domain.BaseEntity;

/**
 * 接口日志对象 sp_port_log
 * 
 * @author sgcc
 * @date 2021-04-27
 */
public class SpPortLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    @Excel(name = "唯一标识")
    private Integer id;

    /** 执行日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "执行日期", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date tdate;

    /** 是否服务端，1 是省侧运营支撑平台服务端，0否 */
    @Excel(name = "是否服务端，1 是省侧运营支撑平台服务端，0否")
    private String isServer;

    /** 接口方法名称 */
    @Excel(name = "接口方法名称")
    private String jname;

    /** 接口入参xml */
    @Excel(name = "接口入参xml")
    private String importMsg;

    /** 返回CODE */
    @Excel(name = "返回CODE")
    private BigDecimal ocode;

    /** 返回MSG */
    @Excel(name = "返回MSG")
    private String omsg;

    /** 执行开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "执行开始时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date bgdate;

    /** 执行结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "执行结束时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date eddate;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setTdate(Date tdate) 
    {
        this.tdate = tdate;
    }

    public Date getTdate() 
    {
        return tdate;
    }
    public void setIsServer(String isServer) 
    {
        this.isServer = isServer;
    }

    public String getIsServer() 
    {
        return isServer;
    }
    public void setJname(String jname) 
    {
        this.jname = jname;
    }

    public String getJname() 
    {
        return jname;
    }
    public void setImportMsg(String importMsg) 
    {
        this.importMsg = importMsg;
    }

    public String getImportMsg() 
    {
        return importMsg;
    }
    public void setOcode(BigDecimal ocode) 
    {
        this.ocode = ocode;
    }

    public BigDecimal getOcode() 
    {
        return ocode;
    }
    public void setOmsg(String omsg) 
    {
        this.omsg = omsg;
    }

    public String getOmsg() 
    {
        return omsg;
    }
    public void setBgdate(Date bgdate) 
    {
        this.bgdate = bgdate;
    }

    public Date getBgdate() 
    {
        return bgdate;
    }
    public void setEddate(Date eddate) 
    {
        this.eddate = eddate;
    }

    public Date getEddate() 
    {
        return eddate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tdate", getTdate())
            .append("isServer", getIsServer())
            .append("jname", getJname())
            .append("importMsg", getImportMsg())
            .append("ocode", getOcode())
            .append("omsg", getOmsg())
            .append("bgdate", getBgdate())
            .append("eddate", getEddate())
            .toString();
    }
}
